<!---
* @Author: hzwlxy
* @Email: 120235331@qq.com
* @Github: http：//www.github.com/siaoynli
* @Date: 2019/6/28 10:57
* @Version:@2019
* @Description:login page
-->
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta charset="utf-8"/>
    <title>欢迎登录后台管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <link href="{{ asset('/assets/backend/css/login.css') }}" rel="stylesheet" type="text/css"/>
    <link href="{{ asset('/static/font/iconfont.css') }}" rel="stylesheet" type="text/css"/>
</head>

<body style="background-image: url({{ $wallpaper }});">

<div class="lee-login-container">
    <div class="lee-login-mask"></div>
    <div class="lee-login-det">
        <div class="lee-user-avatar">
            @if($admin)
                <img src="{{ asset($admin['avatar'])}}" alt="">
            @else
                <img src="{{ asset('/assets/backend/images/guest.png')}}">
            @endif
        </div>
        <div class="lee-username">
            @if($admin)
                {{ $admin['nick_name'] }}
            @endif
        </div>
        <div class="lee-login-form">
            <form action="{{ route("backend.login") }}" method="post" name="login">
                @if($admin)
                    <div class="input-username">
                        <input type="text" name="user_name" autocomplete="off" placeholder="用户名" value="admin">
                        <div class="lee-input-box"></div>
                    </div>
                @else
                    <div class="input-username" style="display: block">
                        <input type="text" name="user_name" autocomplete="off" placeholder="用户名" value="">
                        <div class="lee-input-box"></div>
                    </div>
                @endif

                <div class="input-password">
                    <input type="password" name="password" placeholder="密码">
                    <div class="lee-input-box"></div>
                    <button type="button" class="lee-login-btn" title="登录"><i class="iconfont icon-jiantou"></i></button>

                </div>
                <div class="clear"></div>
            </form>
        </div>

        <div class="lee-message-container">
            <div class="lee-notice-msg"></div>
            <div class="lee-confirm-button">
                <div class="lee-button-box">
                </div>
                <span>确&nbsp;定</span>
            </div>
        </div>
    </div>
    @if($admin)
        <div class="lee-choose-user">
            <ul>

                <li class="lee-active">
                    <div class="lee-info">
                        <span class="avatar"><img src="{{ asset($admin['avatar']) }} " alt=""></span> <span
                                class="username" data-name="{{ $admin["user_name"] }}">{{ $admin["nick_name"] }}</span>
                    </div>
                </li>

                <li>
                    <div class="lee-info">
                   <span class="avatar">
                    <img src="{{ asset('/assets/backend/images/guest.png')}}">
                   </span>
                        <span class="username" data-name="other">其他用户</span>
                    </div>
                </li>
            </ul>
        </div>
    @endif

    <div class="lee-widget">
        <ul>
            <li><a href="{{ route("backend.password.request") }}" target="_blank" title="忘记密码" class="forget-password"><i
                            class="iconfont icon-ziyuanxhdpi"></i></a></li>
            <li><a href="javascript:;" target="_blank" title="全屏" class="full-screen"><i
                            class="iconfont icon-quanping"></i></a></li>
            <li><a href="javascript:;" title="查看时间" class="lee-clock"><i class="iconfont icon-icon-time"></i></a></li>
            <li><a href="/" target="_blank" title="访问首页"><i class="iconfont icon-home1"></i></a></li>
        </ul>

    </div>
</div>
<div class="lee-datetime">
    <div class="lee-time"></div>
    <div class="lee-datetime-show">
        <span class="lee-date"></span>,<span class="lee-week"></span>
    </div>
</div>
</body>
<script src="{{ asset('/static/jquery/jquery.min.js') }}" type="text/javascript"></script>
<script src="{{ asset('/assets/backend/js/pages/login.js') }}" type="text/javascript"></script>
</html>